minor bug in getHist which forced the histogram to always be normalized