fix bug for game