Fix for wrong event object in FF