fix android crash on back button press