Fixed a bug where spectator joining crashes the server