Fix bug when use nodePaths.