diff --git a/system/libraries/Loader.php b/system/libraries/Loader.php
index 41c0a9b..0947046 100644
--- a/system/libraries/Loader.php
+++ b/system/libraries/Loader.php
@@ -146,7 +146,7 @@
 			show_error('Unable to locate the model you have specified: '.$model);
 		}
 				
-		if ($db_conn !== FALSE)
+		if ($db_conn !== FALSE AND ! class_exists('CI_DB'))
 		{
 			if ($db_conn === TRUE)
 				$db_conn = '';