Fixes multiplayer bugs