Fix modal graph event bug.