Correct wrong port assignment