Fix connectors` bounding rectangle calculation