Batch and mini batch corrected