[tim, james] #14 Fixes bug with saving duplicate aggregations