Fix incorrect calculation of `chunkStart` variable