fix path_simplify