batch-run fix