bug fix for the chunkstream writer and bad timestamps