fix batch tasks