fix accounting index bug