fix some bugs in parser action