Fix the templates.