Slight correction in pre-processing of ramp data