update code redirect _id fix