Fixing ResampleRowsWeighted