Fixed crash on startup on tablet devices