Fixes several issues with links.