fix legacy contig_ids metadata