try to fix some issues with alert dialogs causing errors on screen
rotation