bugfix in Histogram sum special cases