Debugging a syntax error