fixed minor bug of histogram
histogram bugs fixed