Fix automatic alert closing