Fix problem with template.