graph bug fixed