fix filtering on boolean fields in queries.