Fixed error when not using aggregations.