Prevent overflow on small devices