Fixed bug with inaccurate drawing of connections to ports.