batch_stats fix