fixed missing tascount index bug