Remove duplicate paths