Fixed incorrect scaling.

The cause was a change in how the scaling is calculated.