Fix mobile orientation change handling.