fix close modal firefox