fix root node null pointer caused crash