diff --git a/lib/DAV/objectTree.js b/lib/DAV/objectTree.js
index <HASH>..<HASH> 100644
--- a/lib/DAV/objectTree.js
+++ b/lib/DAV/objectTree.js
@@ -40,11 +40,9 @@ exports.jsDAV_ObjectTree = jsDAV_ObjectTree;
         //if (!path || path=='.') return this.rootNode;
         var currentNode = this.rootNode;
         var c           = path.split("/");
-        var i           = 0;
-        var l           = c.length;
         // We're splitting up the path variable into folder/subfolder components
         // and traverse to the correct node..
-        Async.range(i, l - 1)
+        Async.list(c)
              .each(function(pathPart, cbnextnpath) {
                 // If this part of the path is just a dot, it actually means we can skip it
                 if (pathPart == "." || pathPart === "")
diff --git a/lib/jsdav.js b/lib/jsdav.js
index <HASH>..<HASH> 100644
--- a/lib/jsdav.js
+++ b/lib/jsdav.js
@@ -54,7 +54,7 @@ exports.jsDAV_Base = function() {};
         // for speed, we check for the most common case first
         if (arguments.length == 1) {
             if (!classRef)
-                throw new Error("Could not implement from '" + classRef[i] + "'");
+                throw new Error("Could not implement. Class is null");
             classRef.call(this);
         }
         else {
- Fix a major bug in objectTree. The getPathNode always return rootNode
- Fix a minor issue in jsdav.js