fix batch error