Fix mistakes in template.