fixing bug when stddev is 0 causing range to be NaN