Replace tree_id parameter with tree.