fix alert problem