Fix parse error reporting