fixed the root node issue