minor fix task search: off by one error in min num instances