fixed: continue was being used instead of break