fix SetTrees