fix bug introduced by f29879a29617960f3a680cba015af2858d0cd167

break only breaks out of one loop :P