Correction of histograms