fix cross-links plugin to correctly remove links that have gone