detect the right moment to check the combo box selection.

TODO: correct which selection is returned.