diff --git a/src/async.js b/src/async.js
index <HASH>..<HASH> 100644
--- a/src/async.js
+++ b/src/async.js
@@ -11,8 +11,8 @@ let ajv = new Ajv({
 const validator = {}
 
 // compile each validator once
-for (let [name, schema] of Object.entries(schemas)) {
-  let validate = ajv.compile(schema)
+for (let name in schemas) {
+  let validate = ajv.compile(schemas[name])
 
   validator[name] = (data = {}, cb) => {
     // execute validation
diff --git a/src/promise.js b/src/promise.js
index <HASH>..<HASH> 100644
--- a/src/promise.js
+++ b/src/promise.js
@@ -11,8 +11,8 @@ let ajv = new Ajv({
 const validator = {}
 
 // compile each validator once
-for (let [name, schema] of Object.entries(schemas)) {
-  let validate = ajv.compile(schema)
+for (let name in schemas) {
+  let validate = ajv.compile(schemas[name])
 
   validator[name] = (data = {}, cb) => {
     return new Promise((resolve, reject) => {
fix(ES<I>): Object.entries not available in Node 4 & 6