fix id collisions