Fixed bug in SearchQuery for 10+ conditions