Game Crashes When Using Set Input Mode Game Only

Hello, for some reason, when I start my game, it begins with the mouse cursor visible and player needs to click before he can gain control. I am solving this with the “set input mode game only” and set show mouse cursor, and it works within the engine. When I package the game however, it causes it to crash… any idea how I can fix this? The same logic works ok in other parts of the game, just not here…