Firefox event fix