fix mpi resamle_weight