fixed alert bug