Correction du undo/redo