make sure there is something to be selected, to avoid an error