Fixed a bug in the Lanczos resampler