Use a different variable with iterating through selectedPaths so we don't hijack path