graph bug fix