fixing duped IDs