Fix problem with unit conversions in binning.