Fixing some histogramming