fix eventlistener issue