Bugfixes to pomagma.batch