Fix anchors creation