Xbox X. Plane Sim mode. Commands recording issues

Hello.
I play in a simulator plane mode.
When I want to record my commands and I have assigned my machine guns to the trigger of my Thrustmaster Hotas. But when I quit the game and restart it, the recording has kept all the keys except the machine gun key and assigns it to another key. I have to correct the setting each time to play. Can you help me please.

Here is the video https://youtu.be/dTeDzhAlIuw