handle the case where the metaclass doesn't exist properly