Fixed graph bug