Fix device tab selection.