fixed issue in path index method