Fix for checking subclass of File