Fixed leveldb issue