Fixed rounding in regeneration formulas.