fix bug in ColorHist