Fix bug when the gametype is invalid