fix typo and bug where external link always displayed