Fixed a bug that made the player stay in spectator.