Change break with continue (fixes #1).