Removed extra loop in batch operation

Minor thing, but I removed that extra loop and array object. Hope this is ok.