Fixing mistakes in template.