fixed a bug in the parser