Fix a warning, and clear the notification before displaying a new one.