critical fix for catalog query