Fix of cancelation bug found by test test_rf_1ktrees_job_cancel_3_fvec.