Issue #104  fixed bug on iterate method