fix root node editing bug