Fix open external in new tab and fix typo

Fixes #985