fix binning to proper range