fixed a bug in parserMain.java