extended_path: fixed bugs when model doesn't converge