Template function template_event not found!