Properly set the selection.