Fix IE9 CustomEvent bug