index bug fix 1