Fixed bug with dropdown not working