added iter_bug
fixed the bug