Correct bug of only do path one time
Generate random relations