Fixed A* when no path exists.