Fixed connectivity issues with branches off the main length.