fix metatype patch to actually work correctly