change the value of $attrs.target
fix typo error