diff --git a/inputs/load_vector_data.sh b/inputs/load_vector_data.sh
index 96d085cefff4592a2e318d62d464a23984e04273..9151fca7968415fa365345c75d30f8bfbdc71c98 100755
--- a/inputs/load_vector_data.sh
+++ b/inputs/load_vector_data.sh
@@ -36,6 +36,7 @@ for file in "$dir"/*; do
     if [ $counter -eq 0 ]; then
         # Process the first file
         ogr2ogr -f MySQL MySQL:"$DB_NAME,host=$DB_HOST,user=$DB_USER,password=$DB_PASS" "$file" -nln footprints -update -overwrite -lco engine=Aria &
+    	wait
     else
         # Process other files in parallel
         ogr2ogr -f MySQL MySQL:"$DB_NAME,host=$DB_HOST,user=$DB_USER,password=$DB_PASS" "$file" -nln footprints -update -append &