Attempted to fix the behavior of the alert