fixed event handler for internet explorer