fix bug with anchors