Changing pages is triggering momentary control #1

I have a bunch of Momentary controls with parameter values > 0 on page one.
These all get triggered with value of 0 on loading program so I can ignore them.

But when I change pages for some reasone on momentary control #1 is getting triggered. Fortunately, it triggers with a value of 0 so I can ignore it. But I don’t see why changing pages should trigger a momentary control without touching it.

Maybe this is some expected operation, but I can’t see why. I should not I am not using formatters, but I do use one midi.onControl, one midi.onMessage and midi.onPolyAT function. That may be it. I’ll test with a simple program.
Thanks

If you put a different control in it’s place temporarily, does anything still get triggered?
I could maybe see a control being (re)set to it’s default if the parameterMap value has not been set/changed, but still that seems more like a bug.

Again - the expected behavior is if the underlying parameterMap value changes, the control’s “stuff” gets executed. In tandem, if the control changes, the parameterMap value gets updated and the onChange(), formatter() and function() routines are invoked.

Thanks. I only have one midi.onControlChange, one midi.onMessage and one midi.onPolyAftertouch function defined but even if a midi command comes in when I switch pages, why would it call control #1. I hope changing a page does not trigger control #1 because of that. Fortunately I note the control returns an initialize value of zero, which I don’t define (control is set to paramater 1). This is all probably part of the strange initialization mechanism Electra one uses. I’ll create a simple test with a couple pages and a midi.onControlChange.