The Sequence is the problem. Breaking the loop not affect the next iteration of sequence. Your code should look like this