Fix alert hiding