fixed checkGenTypeClasses, i think