Use the actual maximum contingency value for scaling factor.

Before the maximum value in the root was used.