fix overflow bug on mobile