Fixed problem of task not selecting properly after a search.