fixed average of averages bug