fix not reponding alert messages when clicking x