Fix minor bugs with links