Correction of the histogram cumulative calcul