Fixed leveldb issues.