Fix resampler is case weight maps are not provided