Fixed bug in parseClasses.