diff --git a/src/python/run_extract_origxml.py b/src/python/run_extract_origxml.py
index b6d7f3bb1d111abeae21f34f9485dcd7b4d58593..e279972d464dc0a46bfd2c52f0f59c88a9791fc8 100644
--- a/src/python/run_extract_origxml.py
+++ b/src/python/run_extract_origxml.py
@@ -33,9 +33,7 @@ folder_database = input_file.split(year_tocomp)[0]
 # Start of computation
 t1 = time.time()
 
-name_tar_file = input_file.split('/')[-1].split('.tar.gz')[0]
-files_proc, _ = utils_proc.get_list(year_tocomp, folder_database, name_tar_file)
-
+# Downloading lfs files
 print(input_file)
 comm = 'git lfs pull -I ' + input_file
 utils_proc.call_with_out(comm)
@@ -43,6 +41,9 @@ input_file_xml = '/'.join(input_file.split('/')[:-1]) + '/01_rawmeta.tar.gz'
 comm = 'git lfs pull -I ' + input_file_xml
 utils_proc.call_with_out(comm)
 
+name_tar_file = input_file.split('/')[-1].split('.tar.gz')[0]
+files_proc, _ = utils_proc.get_list(year_tocomp, folder_database, name_tar_file)
+
 list_proc = list()
 for infile in files_proc: