fix numbering on duplicates