Fixed bug in DBIterator