fix bucket histogram