Fixed defect with root being incorrectly handled.