id fix while upgrading data