fix always incrementing id on updated records