- fix subtle index bug