Packaging your Game Unreal Blueprint Course Marble Game

After I successfully package the game from unreal to desktop and start the game, unfortunately once the game restarts or the player press the “R” key (which will restart the game in the UE editor) the game freezes.
Is there any solution to this problem ?