fixed bug where it would crash on tablet