fix double slashed path problem for snapshot