fix RunQueries to return results for all queries

nested for loops both used `i`.  Top for loop was exiting early if inner loop set i to a value greated then `nreqs`