Fixing bug in the constructor, which apeared in new root