FIX bug in averaging