fix the interator.next() method null issue....