fix the range of histogram