fixed metaclass error