fixed illegal nesting for no tasks