bugfix: setAggregation was wrong