Program change sent twice when encoder is assigned

Good morning,
I have set different program changes per pattern as indicated in the manual. Fine !
Now if I assign an encoder to “Program change” (2nd+Fill and then pressing the encoder), each time a pattern changes the PC event is sent but immediately followed by another program change with the encoder current value, which defeats the purpose of sending a PC when the pattern changes.

Is this a bug or a feature ?
It seems to me that the current encoder position/value should be ignored when the pattern changes, and set to the pattern value. The logic could be similar to what was discussed here. for CC’s.