Fix: total matches were sometimes miscounted