fix another index bug