Fixing incorrect replacement of values for resample interpolation min/max with high-to-low base values