Fix the std. dev calculation (I hope)