Corrected a bug where the payload was wrongly updated when a pallet was removed
Change comport @hooolm