duplicate id fix