Fixed Undo/Redo for disconnect.