Alter the way we search the path to make sure that there are no duplicates.