Yup - performing a "soft reset" or something similar doesn't reset all the variables and boolean states quite right. It leads to fun stuff like that
Not the end of the world since this falls outside the usual use case