Fix bug in aggregate combinator