fix zariz_get_tree_parents_ids().