fixed type errors with HID cast to HKID