fix segment path error