bug fix at graph