fixed bug for stdev of a single element