Fix addition of anchor.

#3859