index bug