fix a bug in the aggregator selection algorithm where processes might no...

...t go through either the if nor the else part.