fix bug that not all records are returned when num_each_query has been set 0