bug with template_files