diff --git a/library/BrowserDetector/BrowserDetector.php b/library/BrowserDetector/BrowserDetector.php
index <HASH>..<HASH> 100644
--- a/library/BrowserDetector/BrowserDetector.php
+++ b/library/BrowserDetector/BrowserDetector.php
@@ -274,7 +274,7 @@ class BrowserDetector
             );
         }
         
-        $cacheId = $this->cachePrefix . $this->agent;
+        $cacheId = $this->cachePrefix . $this->agent;//hash('sha512', $this->cachePrefix . $this->agent);
         $result  = null;
         $success = false;
         
diff --git a/library/BrowserDetector/Input/Browscap.php b/library/BrowserDetector/Input/Browscap.php
index <HASH>..<HASH> 100644
--- a/library/BrowserDetector/Input/Browscap.php
+++ b/library/BrowserDetector/Input/Browscap.php
@@ -121,10 +121,13 @@ class Browscap extends Core
         }
         
         $this->parser->setCache($this->cache)
-            ->setLocaleFile($this->localFile)
             ->setCachePrefix($this->cachePrefix)
         ;
         
+        if (null !== $this->localFile) {
+            $this->parser->setLocaleFile($this->localFile);
+        }
+        
         if (null !== $this->logger) {
             $this->setLogger($this->logger);
         }
fixed error when localfile is not set for Browscap input