Set batch type automatically in loop, too
Merge pull request #256 from matthias-ronge/set_batch_type

Fix: Set batch type automatically in loop, too