Fix logic error in device selection abbreviation.