Removed unnecessary checks in the root node.