importMetadata ctor bug