diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php
index ab8a6a8..61f0d30 100644
--- a/system/database/DB_driver.php
+++ b/system/database/DB_driver.php
@@ -234,9 +234,9 @@
 		{
 			if ($this->_cache_init())
 			{
+				$this->load_rdriver();
 				if (FALSE !== ($cache = $this->CACHE->read($sql)))
 				{
-					$this->load_rdriver();
 					return $cache;
 				}
 			}
diff --git a/system/database/DB_result.php b/system/database/DB_result.php
index 44f166d..7553c16 100644
--- a/system/database/DB_result.php
+++ b/system/database/DB_result.php
@@ -63,7 +63,7 @@
 			return $this->result_object;
 		}
 		
-		if ($this->numerous == 0)
+		if ($this->num_rows == 0)
 		{
 			return array();
 		}
diff --git a/system/libraries/Session.php b/system/libraries/Session.php
index 96a0c43..c1fc345 100644
--- a/system/libraries/Session.php
+++ b/system/libraries/Session.php
@@ -110,8 +110,10 @@
 			}
 		}
 		
-		// Do we need encryption?		
-		if ($this->CI->config->item('sess_encrypt_cookie') == TRUE)	
+		// Do we need encryption?
+		$this->encryption = $this->CI->config->item('sess_encrypt_cookie');
+	
+		if ($this->encryption == TRUE)	
 		{
 			$this->CI->load->library('encrypt');
 		}