diff --git a/annis-service/src/main/java/annis/administration/SchemeFixer.java b/annis-service/src/main/java/annis/administration/SchemeFixer.java
index <HASH>..<HASH> 100644
--- a/annis-service/src/main/java/annis/administration/SchemeFixer.java
+++ b/annis-service/src/main/java/annis/administration/SchemeFixer.java
@@ -94,6 +94,9 @@ public class SchemeFixer
     catch (SQLException ex)
     {
       log.error("Could not get the metadata for the database", ex);
+    }
+    finally
+    {
       if(result != null)
       {
         try
close resources in finally and not in the catch block