Fix event reference for Firefox