fix weights_per_problem rounding