fixed various multiplayer-related bugs