Fixed error when not using aggregations.
Merge pull request #10 from swhammack/master

Fixed error when not using aggregations.