firefox event fix