fixed missing avg.