Fixed the condition in onActivityResult().