Fixed addEventListener def