fix bug in histo smoother when running close to edges of a histogram