tag index bug fix