Fixed bug at function stddev and var