Fix device number.