Fixed bug with missing items in histogram.