fix iPad crash on device