spiv: Move the resampling workaround to a correct place.