fix bug if the value of variable is too large(mean and stddev may be null)