fixed bug on mobile on refresh