Fix for query without filters.