Merge "Initialize mMetaData correctly, fix ref count"