fix bug in graphics.histogram()