fixes mean&stddev methods.