Fixing querying items containing set attributes