Fix warning about resampling