Fixed Bug with Boolean Queries