Gettign segment by id correctly