Fix force close when pressing back button