fix firefox focus bug on flagging dialog