Fight mode changes by itself

Hello, I have a problem while conducting a mission using QGroundControl, when I tried to control the flight by myself, I pressed ‘A’ to turn to mode Loiter, but after few minutes it turned to mode Stabilized by itself. Then I have to press the button again to switch back to Loiter. How can I keep the same flight mode until I change it.