Fix bug cause by wrong compute stdev value