fixing a bug in template ('missing /tmpl_if)