add fix_tree in fix_tree.c