fix averages