aggr. bug fix on runs with differing batch size