fixes URLSegment validation for non nested urls