fix alert bug