fix metadata file