Fixed usb and eventhandler bug