Network multiplayer

Fix some small crashes