iterate the iterator

It works better this way.  Trust me.

Signed-off-by: Seth Jennings <sjenning@redhat.com>
Merge pull request #29 from spartacus06/fixes

iterate the iterator