fix path name when edit and add path