fix bugs in events for internet explorer