fixed 'addEvent' page's errors