Fix undo sequential delete bug