fix treecast