trying to fix an on-orientation-change crash bug