Fixes call to createQueryVar()