Firefox fix for modals