fixed bug with links