Fix for multiple batches of uploads.