offset regenerate index bug fix