Fixed a loop bug.  This fixes #100