Fixed a bug on joining a game