fixed nxhtml and undo-tree