Local correction schemes to counteract insertion device effects