Fixed histogram, should be working properly.
Fixed histogram.