Fixing bug that caused some content to be excluded from matches (#773)