Fixing alert dialog