Fixed nested reference recursion across paths.