[INTERNAL] minor fix in iterator