Fix syntax error in public template