Fix cloning of anchors