diff --git a/src/main/java/com/orientechnologies/security/auditing/ODefaultAuditing.java b/src/main/java/com/orientechnologies/security/auditing/ODefaultAuditing.java
index <HASH>..<HASH> 100644
--- a/src/main/java/com/orientechnologies/security/auditing/ODefaultAuditing.java
+++ b/src/main/java/com/orientechnologies/security/auditing/ODefaultAuditing.java
@@ -231,13 +231,7 @@ public class ODefaultAuditing implements OAuditingService, ODatabaseLifecycleLis
   }
 
   private File getConfigFile(String iDatabaseName) {
-    String storagePath = server.getDatabases().getDatabasePath(iDatabaseName);
-
-    if (storagePath != null) {
-      return new File(storagePath + File.separator + FILE_AUDITING_DB_CONFIG);
-    }
-
-    return null;
+    return new File(server.getDatabaseDirectory() + iDatabaseName + File.separator + FILE_AUDITING_DB_CONFIG);
   }
 
   @Override
Fixed ODefaultAuditing.getConfigFile() so it would compile.