Prevent numerical stability problems from hanging get_path