TaskService::confirm method fix