error in matchCount loop.