fix orientation change crash bug

fix orientation change crash bug