diff --git a/modules/gui/src/file_loader.cc b/modules/gui/src/file_loader.cc
index eab3697c59d2b9f757f17f8d06a8dd3e31ff44be..892278c56393775ea3c93549652fa9f9814ee00d 100644
--- a/modules/gui/src/file_loader.cc
+++ b/modules/gui/src/file_loader.cc
@@ -288,6 +288,10 @@ gfx::GfxObjP FileLoader::TryLoadSurface(const QString& filename, io::SurfaceIOHa
       gfx::SurfaceP gfx_surf(new gfx::Surface(fi.baseName().toStdString(),sh));
       return gfx_surf;
     }
+    else{
+      gfx::SurfaceP gfx_surf(new gfx::Surface(fi.baseName().toStdString(),sh));
+      return gfx_surf;
+    }
   }
   return gfx::GfxObjP();
 }