Improve the accuracy of parser errors