Fixed an anchor updating bug.