fixed bug with double spawning for host