replaced continue with break
Merge pull request #1 from twielfaert/master

replaced continue with break