fixed a bug with links