fixing duplicate id