fix for iPad crash. (landscape mode)