diff --git a/preprocessor/preprocessor/steps/georeference.py b/preprocessor/preprocessor/steps/georeference.py
index 796e69a8a783570b91ce5600c5a82b5eef48403b..129074815f84b8f10720d367d09606a155677251 100644
--- a/preprocessor/preprocessor/steps/georeference.py
+++ b/preprocessor/preprocessor/steps/georeference.py
@@ -33,7 +33,11 @@ def gcp_georef(input_filename: os.PathLike, target_filename: os.PathLike, order:
     succeded = False
 
     # simple case: get the geotransform from some GCPs
-    ds = gdal.Open(input_filename, gdal.GA_Update)
+    try:
+        ds = gdal.Open(input_filename, gdal.GA_Update)
+    except RuntimeError:
+        logger.warn('Can not open file by GDAL %s' % (input_filename))
+        return
     if ds.GetGCPCount() <= 4:
         try:
             gcps = ds.GetGCPs()
diff --git a/preprocessor/preprocessor/steps/output.py b/preprocessor/preprocessor/steps/output.py
index f7d14d12d0b58c4d267499732312987c517e58aa..882e428ffe8cff4224f571fb66f1ef91db9f1557 100644
--- a/preprocessor/preprocessor/steps/output.py
+++ b/preprocessor/preprocessor/steps/output.py
@@ -1,6 +1,7 @@
 import os
 from os.path import join, basename
 from uuid import uuid4
+from glob import glob
 
 from ..util import replace_ext, gdal
 import logging