Correct the calculation of the standard deviation.