fixed the bug on mobile