Fix anchors for reference attributes