Fix for event in Firefox