don't set 'target' if it is '_self' (see issue #51)