fix a bug with game threads