Fix redo, undo, delete, edit command