Fixes an exception being raised with aggregate targets

Fixes #6