Fixed issues in the HID pairing process.