Fix event object use for Firefox