fixed bug because of leveldb's change