modify usb device and fix bug