Fix bug in sizeOfMatchArray making the tests fail