Fix IE8 event handlers