Change element.anchors to element.ids