Fix broken links condition