Fixes the manipulation of cargo assignments.