fixes issues with links