fix batch mode oops