fixing search for tag and task