diff --git a/src/fr/inrialpes/exmo/ontowrap/owlapi30/OWLAPI3OntologyFactory.java b/src/fr/inrialpes/exmo/ontowrap/owlapi30/OWLAPI3OntologyFactory.java
index a052285520880b7f73f3f85a3a520d4695c4a513..f4f340ea0b9ff3bea46b24baebb0f78c90bc02ca 100644
--- a/src/fr/inrialpes/exmo/ontowrap/owlapi30/OWLAPI3OntologyFactory.java
+++ b/src/fr/inrialpes/exmo/ontowrap/owlapi30/OWLAPI3OntologyFactory.java
@@ -100,8 +100,10 @@ public class OWLAPI3OntologyFactory extends OntologyFactory {
 	    // This is a cache failure
 	    throw new OntowrapException("Already loaded [doc cache failure] " + uri, oodaeex );
 	} catch ( OWLOntologyAlreadyExistsException ooaeex ) {
-	    // This is a cache failure
-	    throw new OntowrapException("Already loaded [owl cache failure] " + uri, ooaeex );
+	    // This happens when the ontology has been loaded from a different URIs
+	    ontology = manager.getOntology( ooaeex.getOntologyID() );
+	    if ( ontology == null )
+		throw new OntowrapException("Already loaded [owl cache failure] " + uri, ooaeex );
 	} catch ( OWLOntologyCreationException oocex ) {
 	    oocex.printStackTrace();
 	    throw new OntowrapException("Cannot load " + uri, oocex );