Fixed OnSpawn being called in the network thread.