Fixing old batch inserts.
Merge pull request #779 from ngodfraind/master

Fixing old batch inserts.