fixes the dropdown bug on mobile