Fixed bug on pathChunks()