Fix device selection.