fixed parallel index bug