Stop using getAnchor() with static targets