Fixed issue where payload was not properly attached when sending batches