fix bug on auto detect USB device.