fix firefox autofocus in modal