Tasks index search bug fix