Fix crash when starting a game during a transition. Fix #399.