Corrected the double port creation nonsense. close #371