Fixed issue with simple aggregations being returned as empty sets.