fix retrieval of value from drop down menu.