handle boolean query overflow errors better.