Fixed chunks index in pathChunks()