Fix App crashes on alert dismiss