Fix queryCatalog method.