Fix closeAlert