Correct the depth of the root node.