Fix bug resetting rowID to 0 in update method.