fixed some bugs in parse classes