Fixes URL Segment generation issue

Fixes issue #43