fix parse error reporting