Fix to getMatches