fixing previously broken select list handling