Fix spawn objects after switch master client