Fix gQuery fails