fixing currentQuery bug

fixed the call order so the currentQuery is populated properly before
trying to construct rerankable links