Fixed bug in drop down code