Fix error introduced in previous commit

The "continue" clause skipped required code