- fixed a bug when user chooses external link, the target attribute was missing