possible linkindex bug fixed
possible linkindex bug fixed pt 2
merged