fix the dropdown bug