Fix setSegment method return value is $this.