Fix duplicate IDs.