Fixing use of continue when not in a loop.