Fixed: check tree_iter type