Fix memory management, alert should be removed from memory once it is dismissed