fix little error.
Modify the getNextBatchX.
Fix issues.