fix to template