fixed bug which corrupted pendingMatches