fix the metadata