fix split index bug