fix missing addEventListener bug