rounding average numbers
fixed nil error