Fix another bug related to misplugged external ports.