fixing syntax error in templates