fix memory issue processing graph module events