subclass check fix