Remove duplicated paths.