fixed error with native event listeners