Fixed isSubclassOf: not working