Fix the dropdown bug for mobile devices.