diff --git a/index.js b/index.js
index <HASH>..<HASH> 100644
--- a/index.js
+++ b/index.js
@@ -131,7 +131,6 @@ module.exports._defaultComparitor = function() {
     // support the object format of generated indexes
     if(indexMode === undefined){
       if(typeof v === 'object' && v.hasOwnProperty('v')) indexMode = true;
-      indexMode = false;
       if(typeof search === 'object' && search.hasOwnProperty('v')) indexModeSearch = true
     }
Fix bug in defaultComparator.  indexMode was always false.