Just from the screenshots, I think the problem might be with the attribute colorcode, because as far as I can tell, Initialized seems correct. You can check that by putting Initialized and the colorcode check in two different If blocks, on inside the other, and putting a print block after each If statement, to see where it stops after your first click:
If <Initialized>
-Print 1
-If <colodercode=N>
--Print 2
You could also reduce the time it takes to Initialize, from 0.1 to 0.01 or 0.02, but that would only make a difference if you are double-clicking and if Initialized is at fault.