fix the index path