remove index from tree_path