fix a bug in extreme binning