chunkmetadata bug fix check for null added