fixed a bug with the 'link' button