Fixed error in internal call to `batch`