Game runing in the menu background

I made a infinite runer.But when i start the game and it goes to the menu thae game is already runing in the backgorund and when i hit play the game just continues and i just jump in the midle of the action. how can i solve this problem ?

I had a similar problem, I have solved it by making sure the menu is a separate and empty level, furthermore the game mode in GameMode Override under World Settings is not my custom game mode but the GameModeBase.