Fix overflow on tablets