fix batch operation