fix some error in parser.c