fix bug introduced by f29879a29617960f3a680cba015af2858d0cd167

break only breaks out of one loop :P
Merge pull request #11 from snarfed/master

fix bug introduced by f29879a29617960f3a680cba015af2858d0cd167