Bug fix

Used continue instead of pass somewhere.