fixed bug with changing game mode not working the first time