fix crash on tablet