reconnect the next node which is cut of by undo action