Fixed crash on game win/lose.