graph bug fixes