fix average record