Fix getClassInfo once and for all (hopefully)