fixed canceling a upload task