reweighting fix