fix the event graph problem