Fix glitch with filtering by relationship.