bugfixes in multithreaded batch executors