Fix bug with modals blocking hover effects when hidden