Fixed StdDev function, it returned 1 / stdev