Fixes a bug that prevented querying by boolean values.