fix addition of histograms