fix an error on click close button in alert