Fix Bug Batch Agent