Fixed error when not using aggregations.

Fixes #8