Fixed the activity exiting after rotation