Fix metatype declaration