Fixed event variable name, causing error in Firefox