Fixed bug in anchor-index