Fixing theoretical problem in histogram plots.