Update uniquePaths