fix path_collapse