Repair insert and delete