Fixed bugs with restarting as host after being the client