Fix error in getClasses()