Fix timer bug for aggregation