Correct how the deviations are calculated.