Fixed a crash affecting tablets