Fix the way ports are connected.