bug fix us n-1 as the freedom of range during the computation of std