fixed bug on small devices