avg graph bug fix