Added else stmt to unset broken links when they work again