fixed bug in stdev calculation in covstats