Fixed bug with multiports