fix pending human task search when tasks are assigned