fixed error to use rest in URI