Graph bug fix