dealing alert dialog bug