diff --git a/tmva/pymva/test/testPyTorchRegression.C b/tmva/pymva/test/testPyTorchRegression.C
index 0723678fc056c3703ced309edfc4ba2c58ac1169..f54c30da66cbf66930aab20debe9d9f9317185f0 100644
--- a/tmva/pymva/test/testPyTorchRegression.C
+++ b/tmva/pymva/test/testPyTorchRegression.C
@@ -15,7 +15,7 @@ int testPyTorchRegression(){
    std::cout << "Get test data..." << std::endl;
    TString fname = "./tmva_reg_example.root";
    if (gSystem->AccessPathName(fname))  // file does not exist in local directory
-      gSystem->Exec("curl -O -L http://root.cern.ch/files/tmva_reg_example.root");
+      gSystem->Exec("curl -L -O http://root.cern.ch/files/tmva_reg_example.root");
    TFile *input = TFile::Open(fname);
 
    // Build model from python file