Fix node selection when creating a new link