Fixed the not updating graph bug.