new tpls index bug fix