fixed a bug

When a link fails, it is not deleted properly. So TopoViewer won't show the link when it is up again.