fix bug of edge events