Fix for initialization with root nodes