Pass the right variable to recordQueryCompletion()