fixed query->nquerys