correct bug adding weight in CSV histos