Fix bug in checkPathSegment