fix bug for query game