Fixed crash on tablets