fix path index