fix event creation in ie