Fixed chunkID read in QueryChunk