added check for root segment in morphology extension