fixing case in SwarmV2 and SwarmWorker