Fixes an exception being raised with aggregate targets

Fixes #6
Merge pull request #10 from kylef/aggregate-targets

Fixes an exception being raised with aggregate targets