fixed averageStats template