fixed a few little bugs in the parser related to the error messages