Change IDs to remove duplicates