fixed ddof in std calc