update leveldb and small fix