fixed a bug that EventEmiiter is going to eternal loop