Fixed bug with drawing straight lines between ports when possible.