fixed alert problem