possible bug fix for attempted insertion of the same row