fixed hcid bug in makeKey