got an index bug on an edge case.