Fixed a bug in MetaDataRepository