Fixing issue with broken links in pdf