Fixed url segment parsing