Fixed delete, insert and duplicate