Fix math error in stdev