fix addEvent