Fix multiplayer bugs