TextAnchors plugin: fix the creation of targets