fix segfaults on Game::popState()