fixed orientation change crash below Android 3.1