Added a condition to avoid the root * from taking two children