Fix PrepareAllPathsInput