Fix alert bug