fix linking problem for pdfs