Fixed a bug in a template