fix broken links and titles