fixed lmdb assert issue