Fix strange problem with global chunkInfo variable