fix a HistogramSpec bug