Fixed undo not triggering an update for the head node.