Fixed bug where wrong relationship would be upconnected