fixed check empty tasklist