Fix bug with marking query public.