Fix bug where duplicate key inserts were failing to cause overwrites.