fix metadata for index