fix path prefix iterator