fixed npe after orientation change