Backported: fixing descheduling of the port; port list was corrupted.