Fix selected and val functionality in ComboBox.