Fixed None bug: used break where I should have used continue