diff --git a/src/index.js b/src/index.js
index <HASH>..<HASH> 100644
--- a/src/index.js
+++ b/src/index.js
@@ -21,9 +21,9 @@
       throw Error('f and g must be functions. f:' + f + ' g:' + g)
     }
 
-    return setProp('name', dot(f, g), function () {
+    return setProp('length', g.length, setProp('name', dot(f, g), function () {
       return f(g.apply(null, arguments))
-    })
+    }))
   }
 
   function dot (a, b) {
[PATCH][FIX] set length of resulting function