Fixed silly bug when building PDF link