Fix river regime calculation.