Resolve id conflicts.