Camera autobound to mouse when executable

I’m creating an executable. In PIE, it’s fine, when I press play, the player is possessed by pawn and the camera moves when right clicking.
In the executable, the behavior is different, the camera moves right at the start without the need to click. It’s doing this only on the first map to load, if I load another map, it’s fine in this latter and if I come back to the first one, the problem is gone.
There is something going on when starting the game that makes the camera moves. How do we change that?

i don’t know why the camera moved.
but, u can use some function to set camera to right way.
so, use get controller to set rotation.

I think I did not explain myself clearly, I’ll try to do better:

In PIE, when I press play, I can move my mouse around without affecting the camera view unless I right click, then I can control the mouse momentarily.

In executable, when I press play, from the start when I move the mouse I change the camera orientation all the time even if I did not click. (I want the behavior from PIE).

Ok, since it’s doing the wrong behavior only on first map to load, I created a loading map that switch to the first map after 2 seconds, and it’s now ok.