Fix lazy query spec