draw graph bug