Fixed bug related to isKindOfClass: method