fix a metaclass compat bug