Bugfix infinite loop in 1D reweighting