fix chunkDistance argument