Handle root node cases