bug fix of urlSegments