aggregation: fix semaphore issues on dataset.