fix batch execution problem

fixes #12