Fixed function syntax error