chunkmetadata counter bug fix