Fix crash after winning the game