Fix continue outside of loop