@Rani: Oh, how stupid of me! I'm more of a beginner, but this shouldn't have happened, to init lastcontrol every time. I only focused the IF/ELSE, not the event itself.