fix firefox focus bug