Fixing duplicate ids.