Fix 77 invalid check of unmatched key ids length