fixed typo in external links function