JAL-2728 use right denominator for min/max ratio calculations