Proper fix for matching bug

This fixes already matched blocks being counted when we compare blocks
during the matching process.