fix crash on wide screen