fixing graph bug

fixing graph bug