fix allquery