fix error with anchors