Correct strange bug with medMetadataKeys