fix overflow in mobile device