fix for the metadata manager