fix multiplayer problem