fix broken links and anchors