fixes some bugs in the drop down menu