fix for isSubClass