bug fix on _path_link