Undo/redo add row works correctly