Fix regression in leveldb backend