fixing issue where anchors were being consumed before being set