             }
             backward ? levelDBIteratorMoveBackward(iterator) : levelDBIteratorMoveForward(iterator)
         }
-        levelDBIteratorDelete(iterator);
-        //}
+        levelDBIteratorDelete(iterator)
     }
     
     // MARK: - Helper methods

    }
    
    public func enumerateKeysWith(predicate: NSPredicate?, backward: Bool, startingAtKey key: String?, andPrefix prefix: String?, callback: LevelDBKeyCallback) {
        //serialQueue.smartSync {
        guard let db = db else {
            NSLog("Database reference is not existent (it has probably been closed)")
            return

    }
    
    public func enumerateKeysAndDictionariesWith(predicate: NSPredicate?, backward: Bool, startingAtKey key: String?, andPrefix prefix: String?, callback: (String, [String : Any], UnsafeMutablePointer<Bool>) -> Void) {
        guard let db = db else {
            NSLog("Database reference is not existent (it has probably been closed)")
            return
