fix small mistakes in templates