fix orientation change crash bug