fixing dataset so that range and binning are consistent