fixed because of leveldb's change