Fix syntax error in template