new index bug fix