Fix bug with matching blocks.