solve location alert problem