Fixed bug in JDBM enumeration where next id is not always correctly saved.