fixing averages