fixed bugs with links