Fixed a glitch in a template