Histogram fix