fixed the histogram of values