Fixed minor bug in template.