Fix number of queries