Fixed a bug in matchKey.