fix circularise undo action (still doesn't undo adding the nodes)