Fixed treeifying for sections