Fix bug in exit ShareActivity.