Fix bug with select from dropdown