fix of localBatch