fix event's bug